-- GENERATED SPELL FOR [Dark Rune Sentinel] --


function spell0_33846(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(64062,pUnit)
pUnit:RegisterEvent('Sorts_33846', 30282, 1)
end

function spell1_33846(pUnit, Event) --@Battle Shout,Self--
pUnit:FullCastSpellOnTarget(46763,pUnit)
pUnit:RegisterEvent('Sorts_33846', 30335, 1)
end

function spell2_33846(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(45026,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_33846', 583, 1)
end

function spell3_33846(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(63805,pUnit)
pUnit:RegisterEvent('Sorts_33846', 666, 1)
end

function spell4_33846(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(63807,pUnit)
pUnit:RegisterEvent('Sorts_33846', 602, 1)
end

function spell5_33846(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(63806,pUnit)
pUnit:RegisterEvent('Sorts_33846', 4000, 1)
end

function spell6_33846(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(63808,pUnit)
pUnit:RegisterEvent('Sorts_33846', 4000, 1)
end

function Sorts_33846(pUnit, Event)
local choix_sorts_33846 = math.random(0, 6)
if choix_sorts_33846 == 0 then
pUnit:RegisterEvent('spell0_33846', 1, 1)
end
if choix_sorts_33846 == 1 then
pUnit:RegisterEvent('spell1_33846', 1, 1)
end
if choix_sorts_33846 == 2 then
pUnit:RegisterEvent('spell2_33846', 1, 1)
end
if choix_sorts_33846 == 3 then
pUnit:RegisterEvent('spell3_33846', 1, 1)
end
if choix_sorts_33846 == 4 then
pUnit:RegisterEvent('spell4_33846', 1, 1)
end
if choix_sorts_33846 == 5 then
pUnit:RegisterEvent('spell5_33846', 1, 1)
end
if choix_sorts_33846 == 6 then
pUnit:RegisterEvent('spell6_33846', 1, 1)
end
end

function mob33846_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_33846', math.random(1500, 3000), 1)
end

function mob33846_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33846_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob33846_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(33846, 1, 'mob33846_Action')
RegisterUnitEvent(33846, 2, 'mob33846_Leave')
RegisterUnitEvent(33846, 3, 'mob33846_Kill')
RegisterUnitEvent(33846, 4, 'mob33846_Die')
